package com.buaa.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.buaa.service.CxbqService;

@Controller
@RequestMapping("cxbq")
public class CxbqController {

	@Autowired
	private CxbqService cxbqService;

	@RequestMapping("query")
	@ResponseBody
	public String query(String dirName, String idName, String Type) {
		String res = cxbqService.query(dirName, idName, Type);
		return res;
	}
	
	@RequestMapping("submit")
	@ResponseBody
	public String submit(String yqmc, String ssdw, String yqmccxfs) {
		//String res = cxbqService.query(dirName, idName, Type);
		return null;
	}

}
